﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace MaxAlarm.Common.Data
{
    public class AlarmItem : DependencyObject
    {
        public long AID { get; set; }
        public string AlarmType { get; set; }
        public string Description { get; set; }
        public string ShortDescription { get; set; }
        public string CtrlNE { get; set; }
        public string AlarmObject { get; set; }
        public DateTime AlarmTime { get; set; }
        public DateTime AckTime { get; set; }
        public DateTime? ClearTime { get; set; }
        public string Status { get; set; }
        public string UpDown { get; set; }
        public string Comments { get; set; }
        public string VIP { get; set; }
        public string Address { get; set; }

        public static readonly DependencyProperty IsClosedProperty =
            DependencyProperty.Register("IsClosed", typeof (bool), typeof (AlarmItem), new PropertyMetadata(default(bool)));

        public bool IsClosed
        {
            get { return (bool) GetValue(IsClosedProperty); }
            set { SetValue(IsClosedProperty, value); }
        }

        public static readonly DependencyProperty IsExecutedProperty =
            DependencyProperty.Register("IsExecuted", typeof (bool), typeof (AlarmItem), new PropertyMetadata(default(bool)));

        public bool IsExecuted
        {
            get { return (bool) GetValue(IsExecutedProperty); }
            set { SetValue(IsExecutedProperty, value); }
        }
    }
}
